/*
 * GuudLock.h
 *
 *  Created on: 2013-1-19
 *      Author: heqiu
 */

#ifndef GUUDLOCK_H_
#define GUUDLOCK_H_

#include "SDL/SDL.h"

namespace guud {
/*
 * 锁，注意使用时候不要拷贝构造
 */
class GuudLock {
public:
	GuudLock();
	~GuudLock();
	//加锁
	void lock();
	//解锁
	void unlock();
private:
	SDL_mutex *m_bufferLock;
};

}

#endif /* GUUDLOCK_H_ */
